package com.haixiaoke.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.haixiaoke.common.annotation.Excel;
import com.haixiaoke.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 智能锁门卡授权信息对象 biz_smart_lock_card
 *
 * @author xiaolong
 * @date 2023-05-31
 */
@Data
public class SmartLockCard extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 1 身份证
     */
    public static final Integer IDENTITY_CARD_TYPE = 1;
    /**
     * 0 CPU卡
     */
    public static final Integer CPU_CARD_TYPE = 0;

    /**
     * 密码门卡id
     */
    private Long cardId;

    /**
     * 厂商人脸授权id
     */
    @Excel(name = "厂商人脸授权id")
    private Long returnCardId;

    /**
     * 智能锁SN
     */
    @Excel(name = "智能锁SN")
    private String sn;

    /**
     * 天网互联智能锁标识（门卡编号）
     */
    @Excel(name = "天网互联智能锁标识", readConverterExp = "门=卡编号")
    private String identification;

    /**
     * 卡类型：0CPU卡(普通门卡) 1身份证
     */
    @Excel(name = "卡类型：0CPU卡(普通门卡) 1身份证 ")
    private Integer cardType;

    /**
     * 门卡卡号（芯片的16进制编号）
     */
    @Excel(name = "门卡卡号", readConverterExp = "芯=片的16进制编号")
    private String cardNumber;

    /**
     * 授权开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "授权开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 授权结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "授权结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 慧享佳授权ID
     */
    @Excel(name = "慧享佳授权ID")
    private String keyId;

    /**
     * 智能锁对应标识
     */
    private String lockIdentifier;

}
